package com.serverlite.framework.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import com.serverlite.framework.servlet.mapping.RouteMapping;
import com.serverlite.framework.utils.PropertiesUtils;

public class StartListener implements ServletContextListener {

    @Override
    public void contextDestroyed(ServletContextEvent arg0) {

    }

    @Override
    public void contextInitialized(ServletContextEvent event) {
        PropertiesUtils.load("/sys.properties");
        PropertiesUtils.load("/db.properties");
        RouteMapping.initMap();
    }
}
